﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocSelection.aspx.cs" Inherits="WMS6.Web.Configuration.LocSelection" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>LocSelection</title>
     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/Verification.js" type="text/ecmascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newCarrier()
        {
//            var from = document.getElementById("hdnFrom").value;
//            window.location.href = "LocSelection.aspx?Type=0&from="+from+"&RecordType="+document.getElementById("txtRecordType").value;
//            return false;
            
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "LocSelection.aspx?from="+escape(from);
            return false;
            
        }
        
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
        
    </script>
</head>
<body>
    <form id="F2177" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="货位筛选条件" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" 
                            Enabled="False" OnClick="btnGoBack_Click" 
                              /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"  
                            Enabled="False" AccessKey="n" OnClientClick="newCarrier();" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"   
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" 
                             /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"   
                            Enabled="False"         AccessKey="d" 
                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                             OnClick="btnDelete_Click"  /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"  
                            Enabled="False" AccessKey="c" OnClick="btnCopy_Click" 
                             /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                     <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                             meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3)" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">筛选数据</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3)" id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one3">排序</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3"></div>
            </div>      
        </div>
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                  <tr>
                         <td width="180">
                             <asp:Label ID="lblRecordType" runat="server" CssClass="label" Text="筛选类型" 
                                 meta:resourcekey="lblRecordType"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td>
                             <asp:DropDownList ID="ddlRecordType" CssClass="mediumselectbox" 
                                 AutoPostBack=True 
                                 OnSelectedIndexChanged="ddlRecordType_OnSelectedIndexChanged"  runat="server" 
                                 meta:resourcekey="ddlRecordType">
                             <asp:ListItem Value="0" meta:resourcekey="ListItem">-----</asp:ListItem>
                             </asp:DropDownList>
                       
                         </td>
                         <td>
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblFilterName" runat="server" CssClass="label" Text="筛选名称" 
                                 meta:resourcekey="lblFilterName"></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtFilterName" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtFilterName" ></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="说明" 
                                 meta:resourcekey="lblDescr"></asp:Label>
                         </td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                         <td width="180">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td >
                             <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox" 
                                 meta:resourcekey="txtDescr" ></asp:TextBox>
                         </td>
                         
                         <td>
                             &nbsp;</td>
                          <td>
                              &nbsp;</td>
                     </tr>
                     <tr style="height:10px;">
                     </tr>
                 </table>
             </div>
             
             <div id="con_one_2" style="display:none;margin-left: 10px; margin-top: 10px;">
                 <fieldset style="width:600px">
                     <legend  style="color:Red"><asp:Label ID="lbllocSelect" runat="server" CssClass="label" meta:resourcekey="lblLocSelection">筛选条件</asp:Label></legend>
                     <table width="550px" style="display: block; margin-left: 10px; margin-top: 10px;">
                         <tr>
                          <td width="10px">
                                 &nbsp;
                             </td>
                             <td  colspan=4>
                                 <asp:Label ID="lblTableName" runat="server" CssClass="label" Text="表名" 
                                     meta:resourcekey="lblTableName"></asp:Label><span
                                     class="must_input">*</span>
                             </td>                          
                         </tr>
                         <tr>
                          <td  width="10px"  >                             
                             </td>
                             <td colspan=4>
                                 <asp:DropDownList ID="ddlTableName" CssClass="mediumselectbox" runat="server" AutoPostBack="True"
                                     OnSelectedIndexChanged="ddlTableName_SelectedIndexChanged" 
                                     meta:resourcekey="ddlTableName">
                                     <asp:ListItem Value="0" Text="-----" Selected="True" 
                                         meta:resourcekey="ListItemResource2"></asp:ListItem>
                                 </asp:DropDownList>
                             </td>                          
                         </tr>
                         <tr>
                         <tr style="height:10px">
                         <td  width="10px"  >                             
                             </td>
                              <td colspan=4>
                              </td>
                         </tr>
                         <td width="10px">
                          </td>
                           <td>
                               <asp:RadioButton ID="rdobtnAnd" runat="server" Text="AND" Width="30px"  
                                   GroupName="rdobtn" Checked="True" meta:resourcekey="rdobtnAnd"/>
                            </td>
                             <td align="left" width="200px">
                                 <asp:Label ID="lblAttribute" runat="server" Text="属性:" CssClass="label" 
                                     meta:resourcekey="lblAttribute"></asp:Label>
                              </td>
                              <td>
                                 <asp:Label ID="lblOperation" runat="server" Text="运算符:" CssClass="label" 
                                      meta:resourcekey="lblOperation"></asp:Label>
                               </td>
                               <td>
                                 <asp:Label ID="lblValue" runat="server" Text="值:" CssClass="label" 
                                       meta:resourcekey="lblValue"></asp:Label>
                                </td>
                         </tr>
                          <tr>
                         <td width="10px">
                          </td>
                           <td>
                               <asp:RadioButton ID="tdobtnOr" runat="server" Text="OR" Width="30px"  
                                   GroupName="rdobtn" meta:resourcekey="tdobtnOr" />
                            </td>
                             <td align=left >
                                 <asp:DropDownList ID="ddlAttribute" runat="server" CssClass="mediumselectbox"  
                                     AutoPostBack="True"  OnSelectedIndexChanged="ddlAttribute_SelectedIndexChanged" 
                                     meta:resourcekey="ddlAttribute">
                                   <asp:ListItem Value="0" Text="-----" Selected="True" 
                                         meta:resourcekey="ListItemResource3"></asp:ListItem>
                                 </asp:DropDownList>
                              </td>
                              <td>
                                 <asp:DropDownList ID="ddlOperation" runat="server" CssClass="selectbox"  
                                      AutoPostBack="True"  OnSelectedIndexChanged="ddlOperation_SelectedIndexChanged" 
                                      meta:resourcekey="ddlOperation">
                                 <asp:ListItem Value="=" Text="=" meta:resourcekey="ListItemResource4"></asp:ListItem>
                                  <asp:ListItem Value="!=" Text="!=" meta:resourcekey="ListItemResource5"></asp:ListItem>
                                   <asp:ListItem Value="<" Text="<" meta:resourcekey="ListItemResource6"></asp:ListItem>
                                    <asp:ListItem Value="&lt;=" Text="&lt;=" meta:resourcekey="ListItemResource7"></asp:ListItem>
                                     <asp:ListItem Value=">" Text=">" meta:resourcekey="ListItemResource8"></asp:ListItem>
                                         <asp:ListItem Value="&gt;=" Text="&gt;=" 
                                         meta:resourcekey="ListItemResource9"></asp:ListItem>
                                      <asp:ListItem Value="IS NOT NULL" Text="IS NOT NULL" 
                                         meta:resourcekey="ListItem0"></asp:ListItem>
                                        <asp:ListItem Value="IS NULL" Text="IS NULL" 
                                         meta:resourcekey="ListItem1"></asp:ListItem>
                                 </asp:DropDownList>
                               </td>
                               <td>
                                    <asp:TextBox ID="txtValue" runat="server" CssClass="textbox" 
                                        meta:resourcekey="txtValue" ></asp:TextBox>
                                </td>
                         </tr>
                     </table>
                 </fieldset>
                 <table width="500px" style="display: block; margin-left: 0px; margin-top: 10px;">
                     <tr>
                         <td>
                             <asp:Button ID="btnAdd" runat="server" CssClass="button"
                                 OnClick="btnAdd_Click"  Text="<%$Resources:ButtonResource,btnAddRule%>"/>
                         </td>
                         <td>
                             <asp:Button ID="btnDel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelRule%>"
                                 OnClick="btnDel_Click"   />
                         </td>
                         <td>
                             <asp:Button ID="btnLeftBracketsAdd" runat="server" CssClass="button" 
                                 Text="<%$Resources:ButtonResource,btnLeftBracketsAdd%>" OnClick="btnLeftBracketsAdd_Click" />
                         </td>
                         <td>
                             <asp:Button ID="btnRightBracketsAdd" runat="server" CssClass="button" 
                                 Text="<%$Resources:ButtonResource,btnRightBracketsAdd%>" OnClick="btnRightBracketsAdd_Click"  />
                         </td>
                         <td>
                             <asp:Button ID="btnDelBrackets" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelBrackets%>"
                                 OnClick="btnDelBrackets_Click" />
                         </td>                        
                        <td>
                         <asp:Button ID="btnAnalyse" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAnalyse%>"
                                OnClick="btnAnalyse_Click" />
                        </td>
                        <td>
                        </td>
                     </tr>
                     <tr>
                      <td colspan=6>
                        <div  style=" margin-top: 10px; margin-bottom:10px">
                          <asp:ListBox ID="lbxWhere" runat="server" Width="100%" Height="100px" 
                                meta:resourcekey="lbxWhere"></asp:ListBox>
                        </div>
                        
                       </td>
                       <td>
                             <asp:Button ID="WhereUp" runat="server" CssClass="button" Text="↑" ToolTip="向上" 
                                 OnClick="WhereUp_Click" meta:resourcekey="WhereUp" /> <br />
                               <asp:Button ID="WhereDown" runat="server" CssClass="button" Text="↓" 
                                 ToolTip="向下" OnClick="WhereDown_Click" meta:resourcekey="WhereDown" />
                         </td>
                        
                     </tr>
                     <tr>
                     <td colspan=5>
                         <asp:Label ID="lblWere" runat="server" Font-Size=X-Small  ForeColor=Red 
                             meta:resourcekey="lblWere"></asp:Label>
                     </td>
                     </tr>
                   
                 </table>
             </div>
             
             <div id="con_one_3"  style="display:none;margin-left: 10px; margin-top: 10px;">
                 <fieldset style="width:600px">
                     <legend style="color:Red"><asp:Label ID="lblLocSelection2" runat="server" CssClass="label" meta:resourcekey="lblLocSelection">排序条件</asp:Label></legend>
                     <table width="550px" style="display: block; margin-left: 10px; margin-top: 10px;"  >
                         <tr>
                         <td width="10px">
                          </td>
                           <td>
                               <asp:RadioButton ID="rdobtnAsc" runat="server" Text="Asc" Width=30px  
                                   GroupName="rdobtn1" Checked="True" meta:resourcekey="rdobtnAsc"/>
                            </td>
                             <td align=left width="200px">
                                 <asp:Label ID="lblAtrribute1" runat="server" Text="属性:" CssClass="label" 
                                     meta:resourcekey="lblAtrribute1"></asp:Label>
                              </td>   
                              <td  width="200px">    </td>                          
                         </tr>
                          <tr>
                         <td width="10px">
                          </td>
                           <td>
                               <asp:RadioButton ID="rdobtndesc" runat="server" Text="Desc" Width=30px  
                                   GroupName="rdobtn1" meta:resourcekey="rdobtndesc" />
                            </td>
                             <td align=left >
                                 <asp:DropDownList ID="ddlAttribute1" runat="server" CssClass="mediumselectbox" 
                                     meta:resourcekey="ddlAttribute1"  >
                                   <asp:ListItem Value="0" Text="-----" Selected="True" 
                                         meta:resourcekey="ListItem2"></asp:ListItem>
                                 </asp:DropDownList>
                              </td> 
                                    <td  width="200px">    </td>                               
                         </tr>
                     </table>
                 </fieldset>
                 <table width="550px" style="display: block; margin-left: 20px; margin-top: 10px;" >
                     <tr>
                         <td width="90px" align=left>
                             <asp:Button ID="btnAdd3" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnNewOrder%>"
                                 OnClick="btnAdd3_Click"  />
                         </td>
                         <td align=left>
                             <asp:Button ID="btnDel3" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelOrder%>"
                                 OnClick="btnDel3_Click" />
                         </td>                                              
                        <td>
                        </td>
                     </tr>
                     <tr>
                      <td colspan=2>
                        <div  style=" margin-top: 10px; margin-bottom:10px">
                          <asp:ListBox ID="lbxOrder" runat="server" Width="100%" Height="100px" 
                                meta:resourcekey="lbxOrder"></asp:ListBox>
                        </div>
                        
                       </td>
                       <td>
                             <asp:Button ID="OrderByUp3" runat="server" CssClass="button" Text="↑" 
                                 ToolTip="向上" OnClick="OrderByUp3_Click" 
                                 meta:resourcekey="OrderByUp3" /> <br />
                               <asp:Button ID="OrderByDown3" runat="server" CssClass="button" Text="↓" 
                                 ToolTip="向下" OnClick="OrderByDown3_Click" 
                                 meta:resourcekey="OrderByDown3" />
                         </td>
                        
                     </tr>
                    <tr>
                     <td colspan=2>
                         <asp:Label ID="lblOrderBy" runat="server" Font-Size=X-Small  ForeColor=Red 
                             meta:resourcekey="lblOrderBy"></asp:Label>
                     </td>
                     </tr>
                 </table>
             </div>             
             
         </div>
            <input type="hidden" id="hdnFrom" runat="server" >
                <input id="hdnFlag" runat="server" type="hidden"></input>
                </input>
                     </input>
            </ContentTemplate>
            <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
        </Triggers>
        </asp:UpdatePanel>
    </div>   
    
    </form>
</body>
</html>
